using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

using buildingLib.daily;
namespace _dmis.daily
{
    public partial class ArchivesTool : _dmis.UIToolBase
    {

        Guid m_doorID;
        public ArchivesTool(Guid doorID)
        {
            m_doorID = doorID;
            InitializeComponent();
            cArchivesList1.SetList(ArchiveInfos.GetDoorArchives(doorID));
        }

        private void ArchivesTool_Load(object sender, EventArgs e)
        {
            
        }

        private void tsb_upload_Click(object sender, EventArgs e)
        {
            NewArchiveTool atDlg = new NewArchiveTool(m_doorID);
            if (atDlg.ShowDialog(this) == DialogResult.OK)
            {
                cArchivesList1.SetList(ArchiveInfos.GetDoorArchives(m_doorID));
            }
        }
    }
}

